package com.demo.exce;

import java.util.Scanner;

/**
 * @Author WaveHi
 * @Date 24/7/2021 下午 5:13
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description
 */
public class SwitchDemo {

    public static void main(String[] args) {

        Scanner sc1 = new Scanner(System.in);

        System.out.print("请输入天数:");
        int day = sc1.nextInt();

        //设计分支结构
        switch(day){
            case 1 :
                System.out.println("星期一");
                break;
            case 2 :
                System.out.println("星期二");
                break;
            case 3:
                System.out.println("星期三");
                break;
            case 4:
                System.out.println("星期四");
                break;
            case 5:
                System.out.println("星期五");
                break;
            case 6:
                System.out.println("星期六");
                break;
            case 7:
                System.out.println("星期天");
                break;
            default:
                System.out.println("输入不合法！");

        }

    }

}
